$(function () {
    let data = myAjax("/common", {}, "get");
    console.log(data);
    setNavData(data.navList);
    setCompanyData(data.companyModel);
})
function setCompanyData(data) {
    $("#logo").attr("src",data.logo);
    $("#ad").html(data.ad);
    $("#net").html(data.net);
    $("#email").html(data.email);
    $("#version").html(data.version);
    $("#address").html(data.address);
}
function setNavData(data) {
    let html = "";
    for (let i = 0; i < data.length; i++) {
        html += '<a href="' + data[i].href + '">\n' +
            '                <div>' + data[i].title + '</div>\n' +
            '            </a>';

    }
    $("#navHtml").html(html);
}